﻿using RStudio.Command;
using System;
using UnityEngine;


/// <summary>
/// 命令 | 帮助
/// </summary>
public class CommandHelp : ICommand
{
    public string Name => "help";
    public string Description => "显示所有可用命令";
    public CommandPermission RequiredPermission =>  CommandPermission.Normal;


    public string[] ParamArray { get; } = Array.Empty<string>();
    public string Usage => "help";


    
    public bool CanExecute(string[] args)
    {
        return args.Length == this.ParamArray.Length;
    }

    public bool Execute(string[] args)
    {
        bool isVaild = CanExecute(args);
        if (isVaild)
        {
            Debug.Log("Help 命令执行");    
        }

        return isVaild;
    }
}